#ifndef __STEP_ALGORITHM_H
#define __STEP_ALGORITHM_H


#include "step_ctrl.h"     


#define PI 3.14159

// 函数声明
void set_distance(float distance_set);
float angle_calculation_x(float x);
void step_distance_ctrl_x_alone(float x, STEP_MOTOR *motor);
float angle_calculation_y(float y);
void step_distance_ctrl_y_alone(float y,STEP_MOTOR*motor);
void multiple_step_distance_ctrl(float x,float y);
void linear_interpolation(float x1, float y1, float x2, float y2, float step_size);
#endif // !__STEP_ALGORITHM_H
